import { computed } from 'vue'
import { useStore } from 'vuex'

// 返回当前的主题配置
export default function(){
  const store = useStore()
  const isDrak = computed(() => store.getters['app/isDrak'])
  const theme = computed(() => {
   const appTheme = store.getters['app/appTheme']
   return isDrak.value ? appTheme.drak : appTheme.light
  })
  return {
    theme
  }
}